package com.wsit.mapper;

import com.wsit.pojo.Server;
import com.wsit.pojo.ServerPage;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ServerMapper {


    List<Server> list(ServerPage serverPage);
    @Insert("insert into dog_f(name, stust, create_time, z_time) values (#{name},#{stust},#{createTime},#{zTime})")
    void add(Server server);
    @Select("select id, name, stust, create_time, z_time from dog_f where id = #{id}")
    Server getById(Integer id);
    @Insert("update dog_f set name = #{name}, stust = #{stust}, create_time = #{createTime}, z_time = #{zTime} where id = #{id}")
    void update(Server server);
    void delete(List<Integer> ids);
}
